package org.tmsps.ne4spring.utils.api;

import org.tmsps.ne4spring.utils.ChkUtil;
import org.tmsps.ne4spring.utils.FileTools;

import java.io.IOException;
import java.net.URL;

public class MakeApiTools {

	public static void main(String[] args) throws IOException {
		URL res = MakeApiTools.class.getResource("api.txt");
		String content = FileTools.readFileToString(res.getFile());
		String[] conts = content.split("\n");
		for (String cont : conts) {
			cont = cont.trim();
			if (ChkUtil.isNotNull(cont.trim())) {
				FunctionModel model = new FunctionModel(cont);
				System.err.println(model.toApi());
				System.err.println();
			}
		} // #for

	}
}
